﻿Type=Activity
Version=5.8
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.

	Private STR As AHSwipeToRefresh
	Dim lv As ListView
	Dim tmr As Timer
End Sub

Sub Activity_Create(FirstTime As Boolean)
	'Do not forget to load the layout file created with the visual designer. For example:
	Activity.LoadLayout("laytest")
	For i=0 To 100
		lv.AddSingleLine("line "&i)
	Next
	STR.SetColorScheme(Colors.Black,Colors.Green,Colors.Red,Colors.Magenta)
	lv.RemoveView
	STR.AddView(lv)
	lv.BringToFront
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)
	
End Sub

Sub STR_Refresh
	Log("begin")
	tmr.Initialize("tmr",3000)
	tmr.Enabled=True
End Sub

Sub tmr_Tick
	tmr.Enabled=False
	STR.Refreshing=False
End Sub
